﻿<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="@ViewBag.Viewport">
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    @System.Web.Optimization.Styles.Render("~/Content/application.css")
    @System.Web.Optimization.Scripts.Render("~/Scripts/application.js")


    <script type="text/javascript">
        var useAnimation = true;
        $.isAndroid = (/android/gi).test(navigator.appVersion);
        if ($.isAndroid) useAnimation = false;
        var jQT = new $.jQTouch({
            addGlossToIcon: true, //gloss icon
            fixedViewport: false,
            statusBar: '#F4EEE9', //options:black-translucent , default ,black 
            useAnimations: useAnimation
        });
        
    </script>
    
    @Html.Partial("~/Views/ShopTemplates/_ErrorPageTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_HeaderTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_FooterTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_LoginTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_RegisterTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_IndexCatalogTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_CategoryTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_ProductListTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_ProductDetailTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyCartTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyInfoTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyCollectTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MakeOrderTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyOrderTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_OrderDetailTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyFilterTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_MyMessageTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_SearchListTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_AddressListTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_PaymentListTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_DispatchModeListTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_InvoiceTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_CouponTpl.cshtml")
    @Html.Partial("~/Views/ShopTemplates/_GenerateOrderTpl.cshtml")


</head>
<body>
    <div id="jqt">
        @RenderBody()
    </div>
    <div class='loading'>
        <div>
            <img src="~/Content/Images/loading.gif"/>
            Loading...
        </div>
    </div>
    <script type="text/javascript">
        var page = new Page({ pageId: "Login"});
        var pageView = new PageView({ model: page });

        var pageRoute = new PageRoute();
        Backbone.history.start();
        $('#jqt').ajaxError(function () {
            pageView.goTo('ErrorPage');
        }).ajaxStart(function () {
            $('.loading').css('display', '-webkit-box');
        }).ajaxStop(function () {
            $('.loading').css('display', 'none');
        });
    </script>
</body>
</html>
